<?php

  if($_REQUEST["do"]=="get") {

    session_start();

    if($_SESSION["drawer_data"]!="")
      echo $_SESSION["drawer_data"];
    else
      echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?><playbook version=\"0.3\" lastId=\"0\"><sequence><dinamic></dinamic><static></static></sequence></playbook>";
  }

  
  if($_REQUEST["do"]=="post") {

    session_start();

    if(!isset($_REQUEST["xml"]))
      die("You don't have the permission to to this (Argument missing).");

    $_SESSION["drawer_data"] = $_REQUEST["xml"];
  }

?>